from rest_framework import serializers

from goods.models import SKUImage, SKU


class ImageSeriazlie(serializers.ModelSerializer):
    image = serializers.ImageField(label="图片",max_length=200)
    class Meta:
        model = SKUImage
        fields = "__all__"


class SKUSeriazlie(serializers.ModelSerializer):

    class Meta:
        model = SKU
        fields = ("id","name")